﻿#region License

/*
 © 2012 Alex Kazaev
 * FolderDrive project [http://folderdrive.codeplex.com/]
 * Licensed under Ms-PL license [http://www.opensource.org/licenses/MS-PL]
 */

#endregion License

using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Documents;

namespace FolderDrive.Controls
{
  /// <summary>
  /// Interaction logic for InfoControl.xaml
  /// </summary>
  public partial class InfoControl
  {
    public Action<bool> Finished;

    public InfoControl()
    {
      InitializeComponent();
    }

    private void OnOkClick(object sender, RoutedEventArgs e)
    {
      if (Finished != null)
      {
        Finished(true);
      }
    }

    private void OnUrlClick(object sender, RoutedEventArgs e)
    {
      var link = (Hyperlink)sender;
      // Do something with link.NavigateUri like:
      Process.Start(link.NavigateUri.ToString());
    }
  }
}